//
//  XGL_LiveBannerItemCell.swift
//  XGamesLive
//
//  Created by ios on 2024/5/29.
//

import UIKit
import FSPagerView

class XGL_LiveBannerItemCell: FSPagerViewCell {
    
    var itemView: XGL_LiveBannerItemView!

    override init(frame: CGRect) {
        super.init(frame: frame)
        self.contentView.layer.shadowColor = UIColor.clear.cgColor
        self.contentView.layer.shadowRadius = 0
        self.contentView.layer.shadowOpacity = 0
        self.contentView.layer.shadowOffset = .zero
        self.contentView.layerCornerRadius = 12.0
        self.contentView.clipsToBounds = true
        self.creatCardView()
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
       
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func creatCardView(){
        self.itemView = XGL_LiveBannerItemView()
        self.contentView.addSubview(self.itemView)
        self.itemView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
    }

}
